﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/BoUser.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="CWB.Web.Mvc.Extensions" %>
<%@ Import Namespace="CWB.Web.DB" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Resources.Text.MenuBo %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="header" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="BreadCrumbs" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
    Category : 
    <select id="categorySn" name="categorySn">
        <option value="0">All</option>
        <%
            List<DbModelCategoryVoice> allCategory = (List<DbModelCategoryVoice>)ViewData["Categorys"];
            if (allCategory != null)
            {
                foreach (DbModelCategoryVoice category in allCategory)
                {
                    Response.Write(string.Format("<option value=\"{0}\">{1}</option>", category.sn, category.Category));
                }
            }
        %>
    </select>
    <% =Resources.Text.Btn_Search%><% =Resources.Text.Label_Colon%><input type="text" value="" name="searchkey" id="searchkey" />
    <button id="Search"><%=Resources.Text.Btn_Search %></button>
    <select name="pageing" id="pageing"></select>
</div>
<div id="content">
    <table class="ui-widget-content ui-corner-all ui-widget voicecontant" >
        <COLGROUP>
          <COL WIDTH="5%"><!-- sn -->
          <COL WIDTH="10%"><!-- chtWord -->
          <COL WIDTH="auto"><!-- descript -->
          <COL WIDTH="auto"><!-- example -->
          <COL WIDTH="auto"><!-- voiceWord -->
          <COL WIDTH="5%"><!-- status -->
          <COL WIDTH="5%"><!-- Action -->
        </COLGROUP>
        <thead class="ui-widget-header">
            <tr>
                <th><% =Resources.Text.Label_SN %></th>
                <th>ChtWord</th>
                <th>Descript</th>
                <th>Example</th>
                <th>VoiceWord</th>
                <th>Status</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody id="bolisting"  class="ui-widget-content">
            <tr>
                <td colspan="3" class="align-center">Please click search for display data.</td>
            </tr>
        </tbody>
    </table>
</div>
</asp:Content>


<asp:Content ID="Content5" ContentPlaceHolderID="JSContent" runat="server">
    <script type="text/javascript" src="<%= Url.CdnContent("/js/Voice/Voice.js") %>"></script>
</asp:Content>
